aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenCallTests]/[method:canCallFunctionWithArgs(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
diff options
context:
space:
mode:
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenCallTests]/[method:canCallFunctionWithArgs(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenCallTests]/[method:canCallFunctionWithArgs(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected54
1 files changed, 54 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenCallTests]/[method:canCallFunctionWithArgs(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenCallTests]/[method:canCallFunctionWithArgs(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
new file mode 100644
index 00000000..bc5ab15b
--- /dev/null
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenCallTests]/[method:canCallFunctionWithArgs(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -0,0 +1,54 @@
+
+module.wasm: file format wasm 0x1
+
+Section Details:
+
+Type[2]:
+ - type[0] (i32) -> i32
+ - type[1] () -> nil
+Import[2]:
+ - table[0] type=funcref initial=0 <- env.__indirect_function_table
+ - memory[0] pages: initial=0 <- env.__linear_memory
+Function[1]:
+ - func[0] sig=1 <f>
+Code[1]:
+ - func[0] size=44 <f>
+Custom:
+ - name: "name"
+ - func[0] <f>
+ - func[0] local[0] <callArgNamed__a__0>
+ - func[0] local[1] <callArgNamed__b__0>
+ - func[0] local[2] <callArgPositional__1__0>
+ - func[0] local[3] <callArgPositional__0__0>
+ - func[0] local[4] <receiver__0>
+Custom:
+ - name: "linking"
+ - symbol table [count=1]
+ - 0: F <f> func=0 [ binding=global vis=default ]
+Custom:
+ - name: "reloc.CODE"
+ - relocations for section: 3 (Code) [1]
+ - R_WASM_TYPE_INDEX_LEB offset=0x00002b(file=0x000090) type=0
+
+Code Disassembly:
+
+00006b func[0] <f>:
+ 00006c: 01 7f | local[1] type=i32
+ 00006e: 01 7f | local[2] type=i32
+ 000070: 01 7f | local[3] type=i32
+ 000072: 01 7f | local[4] type=i32
+ 000074: 01 7f | local[5] type=i32
+ 000076: 21 00 | local.set 0 <callArgNamed__a__0>
+ 000078: 21 01 | local.set 1 <callArgNamed__b__0>
+ 00007a: 21 02 | local.set 2 <callArgPositional__1__0>
+ 00007c: 21 03 | local.set 3 <callArgPositional__0__0>
+ 00007e: 21 04 | local.set 4 <receiver__0>
+ 000080: 20 04 | local.get 4 <receiver__0>
+ 000082: 20 03 | local.get 3 <callArgPositional__0__0>
+ 000084: 20 02 | local.get 2 <callArgPositional__1__0>
+ 000086: 20 00 | local.get 0 <callArgNamed__a__0>
+ 000088: 20 01 | local.get 1 <callArgNamed__b__0>
+ 00008a: 20 04 | local.get 4 <receiver__0>
+ 00008c: 28 02 00 | i32.load 2 0
+ 00008f: 11 80 80 80 80 00 00 | call_indirect 0 0
+ 000096: 0b | end \ No newline at end of file